/**
 * Created by Administrator on 2017/6/23 023.
 */
(function (angular) {
    "use strict"
    /*创建自定义指令来做组件*/
    var app = angular.module('app')
    app.directive('navs',function () {
        return {
            restrict:'EA',
            templateUrl:'../views/navDir_tpl.html',
            controller:'navController',
            link:function ($scope,elem,attr) {
                /*控制返回标签是否隐藏*/
                if(attr.isback != "true"){
                    elem.find('i').css({
                        'display':'none',
                    })
                }

            },
        };

    });
})(angular);